const multicastReceiver = {
  state: {
    multicastReceiverList: []
  },
  mutations: {
    setMulticastReceiverList (state, data) {
      state.multicastReceiverList = data
    },
    clearMulticastReceiverList (state) {
      state.multicastReceiverList = []
    }
  },
  actions: {
    async getMulticastReceiverList (context, payload) {
      let response = await context.dispatch('axios', {
        method: 'get',
        url: '/api/abs/devices/multicast_receiver/',
        params: {
          multicast_freq_segment: payload
        }
      })
      context.commit('setMulticastReceiverList', response.data)
    }
  },
  getters: {
  }
}
export default multicastReceiver
